<template>
  <div class="collection">
    <div class="one_search">

      <div class="one_sousuo">
        <div class="type">
          <div class="type-head">
            <el-image class="type-text" :src="require('@/assets/logo/logoH.png')"/>
          </div>
          <form class="find-button">
            <input class="find-input" type="text" placeholder="请输入您要搜索的内容..." v-model="searchText">
            <button class="find-click" type="submit" @click="searchButton()"><i class="el-icon-search"/></button>
          </form>
        </div>

        <div class="one_search_load" v-show="loginShow">
          <img :src="require('@/assets/cart/shop_07.jpg')" class="one_load_wraing">
          <span>您还没有登录！登录后购物车的商品将保存到您账号中</span>
          <a><input type="button" @click="login()" value="立即登录" class="one_load_btn"></a>
        </div>

      </div>

    </div>

    <div class="One_BdyShop">
      <div class="OneBdy_box">
        <div class="One_tabTop">
          <div class="One_Topleft">
            <span>全部商品 {{ list.countType }}</span>

          </div>

        </div>
        <div class="One_ShopTop">
          <ul>
            <li><input type="checkbox" class="allCheck" style="vertical-align: middle;margin-right: 20px" :checked="allCheck" @change="setAllCheck()">全选</li>
            <li>商品</li>
            <li>单价</li>
            <li>数量</li>
            <li>小计</li>
            <li>操作</li>
          </ul>
        </div>

        <div class="One_ShopCon">
          <ul>
            <li v-for="item in list.items" :key="item.skuId">
              <div></div>
              <div :style="item.check ? {backgroundColor:'#e6e6e6'} : {}">
                <ol>
                  <li>
                    <input type="checkbox" class="check" :checked="item.check" @click="checkSku(item.skuId)" :disabled="!item.hasStock" />
                  </li>
                  <li>
                    <dt>
                      <img alt="" :src="item.skuImg">
                      <img v-show="!item.hasStock" style="position: absolute;left: 335px;" :src="require('@/assets/cart/similar-bg.png')">
                    </dt>
                    <dd>
                      <p>
                        <span
                          :title="item.skuTitle"
                          style="display: block;width: 200px;line-height: 20px;height: 40px;text-overflow: ellipsis;-o-text-overflow: ellipsis;overflow: hidden;">
                          {{ item.skuTitle }}
                        </span>
                      </p>
                    </dd>
                    <dd style="height: 83px;margin-left: 80px">
                      <div
                        v-for="t in item.skuAttr"
                        :key="t"
                        :title="t"
                        style="font-size: 12px;line-height: 15px;height: 15px;margin-bottom: 10px;width: 100px;text-overflow: ellipsis;-o-text-overflow: ellipsis;overflow: hidden;">
                        {{ t }}
                      </div>
                    </dd>
                  </li>
                  <li>
                    <p class="dj">￥{{ item.skuPrice }}.00</p>
                  </li>
                  <li>
                    <el-input-number v-model="item.count" @change="handleChange(item.skuId, item.count)" :min="1" :max="200" label="描述文字" size="small" :disabled="!item.hasStock"></el-input-number>
                    <div :style="!item.hasStock ? {color:'red'} : {}">{{item.hasStock ? '有货' : '无货'}}</div>
                  </li>
                  <li style="font-weight:bold">
                    <p class="zj">￥{{ item.totalPrice }}.00</p>
                  </li>
                  <li>
                    <p class="carDel" @click="delShow = true; delCartItemId = item.skuId">删除</p>
                  </li>
                </ol>
              </div>

            </li>
          </ul>
        </div>
        <div class="One_ShopFootBuy fix1">
          <div>
            <ul>
              <li><input type="checkbox" class="allCheck" style="vertical-align: middle;margin-right: 20px" :checked="allCheck" @change="setAllCheck()"><span>全选</span></li>
              <li class="checkButtonDIV" @click="delCheckCartItem()">删除选中的商品</li>
              <li class="checkButtonDIV">移到我的关注</li>
              <li class="checkButtonDIV">清除下柜商品</li>
            </ul>
          </div>
          <div>
            <font style="color:#e64346;font-weight:bold;" class="sumNum"> </font>&nbsp;

            <ul>
              <li><img :src="require('@/assets/cart/buyNumleft.png')" alt=""></li>
              <li><img :src="require('@/assets/cart/buyNumright.png')" alt=""></li>
            </ul>
          </div>
          <div>
            <ol>
              <li>已选择 <span style="color: red">{{ list.countNum }}</span> 件商品</li>
              <li>总价:<span style="color:#e64346;font-weight:bold;font-size:16px;" class="fnt">￥{{ list.totalAmount }}.00</span> </li>
            </ol>
          </div>
          <div><button @click="pushSettlement()" type="button">去结算</button></div>
        </div>

        <div style="height: 30px;position: relative"></div>
      </div>
    </div>

    <div
      style="
      width: 1903px;
      height: 970px;
      z-index:40000;
      position: fixed;
      top:0px;
      left:0px;
      background-color: rgba(100, 100, 100, 0.2);"
      :style="delShow ? {display: 'block'} : {display: 'none'}"
      @click="delShow = false"
    >
      <div class="One_isDel" :style="delShow ? {display: 'block'} : {display: 'none'}" @click.stop="delShow = true">
        <div>
          <span class="elIconCloseDel">
            <i class="el-icon-close" style="font-size: 20px" @click.stop="delShow = false"></i>
          </span>
        </div>
        <div style="margin: 0 auto">
          <div style="margin-left: 165px;margin-top: 20px">
            <i class="el-icon-warning-outline" style="font-size: 50px; color: rgb(255,136,34)"></i>
          </div>
          <div style="text-align: center; margin-top: 13px">
            <li style="font-size: 20px;font-weight: bold">删除商品</li>
            <li style="color: rgb(102,102,102); margin-top: 5px;">您可以选择移到关注，或删除商品。</li>
          </div>
        </div>
        <div>
          <button type="button">移入关注</button>
          <button type="button" @click="delCartItem()">删除商品</button>
        </div>
      </div>
    </div>


    <div
      style="
      width: 1903px;
      height: 970px;
      z-index:40000;
      position: fixed;
      top:0px;
      left:0px;
      background-color: rgba(100, 100, 100, 0.2);"
      :style="batchDelShow ? {display: 'block'} : {display: 'none'}"
      @click="batchDelShow = false"
    >
      <div class="One_moveGzIfNull" @click.stop="batchDelShow = true">
        <div>
          <span class="elIconCloseDel">
            <i class="el-icon-close" style="font-size: 20px" @click.stop="batchDelShow = false"></i>
          </span>
        </div>
        <div style="margin: 0 auto">
          <div style="margin-left: 165px;margin-top: 20px">
            <i class="el-icon-warning-outline" style="font-size: 50px; color: rgb(255,136,34)"></i>
          </div>
          <div style="text-align: center; margin-top: 13px">
            <li style="font-size: 20px;font-weight: bold">请至少选择其中一件商品</li>
          </div>
        </div>
        <div>
          <button type="button" class="cartMoveButton" @click.stop="batchDelShow = false">知道了</button>
        </div>
      </div>
    </div>


    <div class="One_moveMyGz">
      <p>
        <span>删除</span><span><img :src="require('@/assets/cart/错误.png')" alt=""></span>
      </p>
      <div>
        <dl>
          <dt><img :src="require('@/assets/cart/感叹三角形 (2).png')" alt=""></dt>
          <dd>
            <li>移到关注</li>
            <li>移动后选中商品将不再购物车中显示</li>
          </dd>
        </dl>
      </div>
      <div>
        <button type="button">确定</button>
        <button type="button">取消</button>
      </div>
    </div>


    <div class="One_clearShop">
      <p>
        <span>提示</span><span><img :src="require('@/assets/cart/错误.png')" alt=""></span>
      </p>
      <dl>
        <dt><img :src="require('@/assets/cart/感叹三角形 (2).png')" alt=""></dt>
        <dd>没有下柜商品!</dd>
      </dl>
    </div>
    <!--底部-->

    <div class="one_footer">

    </div>
  </div>
</template>

<script>
import {getToken} from "@/utils/login-token";

export default {
  name: "index",
  data(){
    return{
      delCartItemId: null,
      searchText: '',
      list: {},
      allCheck: true,
      delShow: false,
      batchDelShow: false,
      loginShow: true,
    }
  },
  created() {
    this.getCartList()
    if(getToken()){
      this.loginShow = false
    }
  },
  methods: {
    handleChange(skuId, count){
      this.$store.dispatch('cart/cart/setCartItemCount', { skuId: skuId, count: count })
        .then(()=>{
          this.getCartList()
        })
        .catch(()=>{})
    },
    setAllCheck(){
      this.allCheck = !this.allCheck
      this.$store.dispatch('cart/cart/setCartItemCheckAll',  this.allCheck)
        .then(()=>{
          this.getCartList()
        })
        .catch(()=>{})
    },
    delCheckCartItem(){
      let n = false
      let skuId = []
      this.list.items.forEach((item)=>{
        if(item.check){
          skuId.push(item.skuId)
          n = true
        }
      })
      if(n){
        this.$store.dispatch('cart/cart/batchDelCartItem',  skuId)
          .then(()=>{
            this.getCartList()
          })
          .catch(()=>{})
      }else{
        this.batchDelShow = true
      }
    },
    checkSku(skuId){
      this.$store.dispatch('cart/cart/setCartItemCheck', skuId)
        .then(()=>{
          this.getCartList()
        })
        .catch(()=>{})
    },
    getCartList(){
      this.$store.dispatch('cart/cart/getCart')
        .then((data)=>{
          this.list = data.data
          let check = true
          let hasStock = true
          data.data.items.forEach((item)=>{
            if(item.hasStock){
              hasStock = false
              if(!item.check){
                check = false
              }
            }
          })
          hasStock ? this.allCheck = false : check ? this.allCheck = true : this.allCheck = false
          console.log(this.list)
        })
        .catch(()=>{})
    },
    pushProductDetail(id){
      let routeData = this.$router.resolve({
        path: "/product-detail",
        query: {
          skuId: id
        }
      });

      //必要操作，否则不会打开新页面
      window.open(routeData.href, '_blank');
    },
    getProductDetail(){
      let data = this.$route.query.data
      if(data !== undefined){
        this.list = JSON.parse(this.$route.query.data)
        this.count = this.$route.query.count
      }else{
        this.$router.push({path: "/search"});
      }
    },
    searchButton(){
      if(this.searchText !== ''){
        let routeData = this.$router.resolve({
          path: "/search",
          query: {
            keyword: this.searchText
          }
        });

        //必要操作，否则不会打开新页面
        window.open(routeData.href, '_blank');
      }
    },
    login() {
      const key = this.$route.path
      this.$router.push({ path: '/login', query: { "navbarKey":key } })
    },
    delCartItem(){
      if(this.delCartItemId !== null){
        this.$store.dispatch('cart/cart/delCartItem', this.delCartItemId)
          .then(()=>{
            this.getCartList()
            this.delCartItemId = null
            this.delShow = false
          })
          .catch(()=>{})
      }
    },
    pushSettlement(){
      this.$store.dispatch('cart/cart/isCheckTrue')
        .then(()=>{
          this.$router.push("/settlement")
        })
        .catch(()=>{})
    }
  }
}
</script>

<style lang="scss">
.el-input-number--small .el-input-number__increase, .el-input-number--small .el-input-number__decrease{
  margin-top: 1px;
  height: 30px;
  width: 30px;
  line-height: 30px;
}
</style>

<style lang="scss" scoped>

.elIconCloseDel{
  display: block;
  float: right;
  margin: 10px;

  &:hover{
    cursor: pointer;
    color: rgb(60,133,39);
  }
}

.checkButtonDIV{
  &:hover{
    cursor: pointer;
    color: rgb(60,133,39);
  }
}

.cartMoveButton{
  width: 100px;
  height: 35px;
  outline: none;
  //padding:5px 10px;
  border:none;
  margin-left: 150px;
  margin-top: 20px;
  background: rgb(60,133,39);
  color:white;

  &:hover{
    cursor: pointer;
  }
}

.carDel{
  color: black;

  &:hover{
    color: white;
    cursor: pointer;
  }
}

*{
  margin:0;
  padding:0;
  font-size:12px;
  box-sizing: border-box;
}
body{
  user-select: none;
}
ul,li{
  list-style: none;
}
a{
  color: black;
  text-decoration: none;
}

.collection {
  min-height: 848px;
  width: 100%;
  background-color: rgb(245, 245, 245);

  .one_search{
    width: 1300px;
    margin: 0 auto;
  }

  .type {
    width: 1300px;
    height: 80px;
    margin: 0 auto;
    text-align: center;
    //padding-top: 20px;
    //padding-bottom: 20px;

    .type-head {
      width: 130px;
      height: 80px;
      line-height: 80px;
      display: inline-block;
      float: left;

      .type-text {
        height: 50px;
        width: 130px;
        margin-top: 15px;
        //display: inline-block;
        //font-size: 16px;
        //margin-top: 13px;
        //margin-right: 20px;
        //float: left;

        &:hover {
          cursor: pointer;
          //color: rgb(79,159,52);
        }
      }
    }

    .find-button {
      background-color: white;
      position: relative;
      width: 400px;
      float: right;
      //margin-right: 400px;
      border: 1px solid rgb(178,178,178);
      margin-top: 19px;

      .find-input {
        background: transparent;
        width: 100%;
        height: 42px;
        padding-left: 13px;
        padding-right:46px;
        border: none;
        outline: none;
        font-size: 10px;
      }

      .find-click {
        background: transparent;
        top: 0;
        right: 0;
        height: 42px;
        width: 42px;
        cursor: pointer;
        position: absolute;
        border: none;
        outline: none;
      }
    }
  }

  .one_search_load{
    width: 1300px;
    height: 48px;
    border: 1px solid #edd28b;
    line-height: 46px;
    padding-left: 20px;
    background: #fffdee;

    .one_load_wraing{
      margin-right: 14px;
    }
    .one_search_load span{
      color: #ff7700;
      font-size: 11px;
      margin-right: 15px;
    }

    .one_load_btn{
      border: none;
      background: none;
      width: 68px;
      height: 25px;
      background: rgb(60,133,39);
      color:#fff;
      border-radius: 4px;
      outline: none;
      margin-left: 20px;

      &:hover{
        cursor: pointer;
        background: rgb(128,176,114);
      }
    }
  }
}

.One_BdyShop{
  width:100%;
  //background-color: white;
}
.OneBdy_box{
  width:1300px;
  height:100%;
  margin:10px auto;
}
.One_tabTop .One_Topleft,.One_tabTop .One_Topright{
  float:left;
  height:40px;
  line-height: 40px;
}
.One_tabTop .One_Topleft span{
  font-size:18px;
  font-weight:bolder;
  height:40px;
  padding:5px 0;
}
.One_tabTop .One_Topleft span:first-child{
  color: rgb(60,133,39);
  margin-right:15px;
  //border-bottom:2px solid red;
}
.One_tabTop .One_Topright{
  float:right;
  height:40px;
  /*padding-right:10px;*/
}
.One_tabTop .One_Topright span{
  color:gray;
}
.One_tabTop .One_Topright span:last-child{
  border:1px solid #cecbce;
  padding:0 5px;
  position: relative;
  display: inline-block;
  height:20px;
  line-height: 20px;
  vertical-align: middle;
}
.One_tabTop .One_Topright span:last-child>div{
  position: absolute;
  width:405px;
  background: white;
  left:-318px;
  top:18px;
  border:1px solid gray;
  height:290px;
  z-index:2;
}
.One_tabTop .One_Topright span:last-child>div>ul>li{
  float:left;
  width:70px;
  height:25px;
  line-height: 25px;
  text-align: center;
  border:1px solid #cecbce;
  border-bottom:none;
  padding:3px 0;
  padding-top:0;
  margin:5px;
  color:#005AA0;
}
.One_tabTop .One_Topright span:last-child>div>ul>li img{
  width:20px;
  height:20px;
}
.One_tabTop .One_Topright span:last-child>div>ul li>ol{
  display: none;
  width:400px;
  height:250px;
  position: absolute;
  top:30px;
  left:0;
  background: white;
}
.One_tabTop .One_Topright span:last-child>div>ul li>ol>li{
  float:left;
  width:100px;
  text-align: left;
  padding-left:15px;
}
.One_tabTop .One_Topright span:last-child img{
  vertical-align: middle;
}
.One_ShopTop{
  height:42px;
  background-color: rgb(230,230,230);
  border:1px solid rgb(220,220,220);
  clear:left;
  line-height: 42px;
  color:#666666;
}
.One_ShopTop ul li{
  float:left;
}
.One_ShopTop ul li:first-child{
  padding:0 10px;
}
.One_ShopTop ul li:nth-child(2){
  margin-left:100px;
}
.One_ShopTop ul li:nth-child(3){
  margin-left:568px;
}
.One_ShopTop ul li:nth-child(4){
  margin-left:140px;
}
.One_ShopTop ul li:nth-child(5){
  margin-left:140px;
}
.One_ShopTop ul li:last-child{
  margin-left:90px;
}
.One_ShopBottom{
  border-bottom:2px solid #aaaaaa;
  height:60px;
}
.One_ShopBottom>div{
  float:left;
  margin-top:20px;
  width:333px;
  height:30px;
  line-height: 30px;
}
.One_ShopBottom>div:first-child{
  padding-left:10px;
}
.One_ShopBottom>div:first-child span:last-child{
  background: #E4393B;
  color:white;
  padding:2px 3px;
  border-radius: 3px;
}
.One_ShopBottom>div:nth-child(2){
  text-align: center;
}
.One_ShopBottom>div:last-child span{
  float:right;
  padding-right:15px;
  color:#666666;
}
.One_ShopCon>ul>li div:first-child{
  height:35px;
  line-height: 35px;
}
.One_ShopCon>ul>li{
  border-bottom:1px solid #aaaaaa;
  /*padding:10px 0;*/
}
.One_ShopCon ul li>div:first-child{
  border-bottom:1px solid #f1f1f1;
}
.One_ShopCon ul li>div:first-child span:nth-child(2){
  color:gray;
  padding:0 10px;
}
.One_ShopCon ul li div:first-child img{
  padding:0 10px;
  vertical-align: middle;
}
.One_ShopCon ul li>div:nth-child(2){
  padding-top:15px;
}
.One_ShopCon ul li>div:nth-child(2) ol{
  height:90px;
}
.One_ShopCon ul li>div:nth-child(2) ol li{
  float:left;
}
.One_ShopCon ul li>div:nth-child(2) ol li>p{
  margin:0;
  padding:0;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(2) dt,.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(2) dd{
  float:left;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(2) dd img{
  vertical-align: middle;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(2) dd p{
  padding:3px 0;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(2) dd p:first-child span:nth-child(3){
  color:gray;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(2) dd p:last-child{
  color:#4b4646;
}
.One_ShopCon ul li>div:nth-child(2) ol li:first-child{
  padding:0 10px;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(2){
  width:700px;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(2) dt img{
  width:100px;
  height:80px;
  padding:0 10px;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(3) p{
  width:100px;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(3) p:nth-child(2){
  color:#E4393B;
  border:1px solid #f9d2d3;
  padding-left:5px;
  padding-top:3px;

}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(3) .nmbd{
  position: absolute;
  top:40px;
  left:0;
  background: white;
  width:250px;
  text-align: left;
  border:2px solid #f9d2d3;
  z-index:3;
  display: none;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(3) .nmbd dd{
  margin:10px 0;
  padding-left:10px;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(3) .nmbd dd:last-child{
  text-align: center;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(3) .nmbd dd:last-child button:first-child{
  border:1px solid #F5F5F5;
  outline: none;
  background: #E03538;
  color:white;
  padding:5px 8px;
  border-radius: 3px;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(3) .nmbd dd:last-child button:last-child{
  border:1px solid gray;
  outline: none;
  background: #F5F5F5;
  padding:5px 8px;
  border-radius: 3px;
}
.One_ShopCon ul li>div:nth-child(2) ol>li:nth-child(3){
  margin-top: 10.6px;
  width:100px;
  text-align: center;
  position: relative;
}
/*.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(3):hover img{
  transform: rotateX(180deg);
}*/
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(3) img{
  /*transition: all 0.5s:*/
  vertical-align: middle;
  width:20px;
  height:20px;
}
/*.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(4){
  padding:0 40px;
}*/
.One_ShopCon ul li>div:nth-child(2)>ol>li:nth-child(4){
  //width:100px;
  text-align: center;
  margin-left:50px;
}
.One_ShopCon ul li>div:nth-child(2)>ol>li:nth-child(4) p{
  width:69.5px;
  text-align: center;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(4) p:first-child{
  border:1px solid #cacbcb;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(4) p:first-child span{
  width:20px;
  text-align: center;
  display: inline-block;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(4) p:first-child span:first-child{
  border-right:1px solid #cacbcb;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(4) p:last-child{
  color:#aaaaaa;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(4) p:first-child span:last-child{
  border-left:1px solid #cacbcb;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(5){
  margin-top: 10.6px;
  width:100px;
  text-align: center;
  margin-left:50px;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(5) p:first-child{
  font-weight: bold;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(5) p:nth-child(2){
  color:gray;
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(6){
  margin-top: 10.6px;
  width:80px;
  margin-left: 50px;
  /*text-align: center;*/
}
.One_ShopCon ul li>div:nth-child(2) ol li:nth-child(6) p{
  //color:gray;
  //padding-left:35px;

  &:hover{
    cursor: pointer;
    color: gray;
  }
}
.One_ShopCon ul li>div:nth-child(3){
  padding-left:35px;
}
.One_ShopCon ul li>div:last-child{
  padding-bottom:15px;
}
.One_ShopCon ul li>div:nth-child(3) span:first-child{
  color:gray;
  padding-right:15px;
}
.One_ShopFootBuy{
  border:1px solid rgb(220,220,220);
  height:52px;
  line-height: 50px;
  margin-top:20px;
}
.One_ShopFootBuy>div{
  float:left;
}
.One_ShopFootBuy>div:first-child ul li{
  float:left;
  padding-left:10px;
}
.One_ShopFootBuy>div:nth-child(2){
  margin-left:560px;
}
.One_ShopFootBuy>div:nth-child(2) .haha{
  transition: all 0.5s;
}
.One_ShopFootBuy{
  position: relative;
}
.One_ShopFootBuy>div:nth-child(2) ol{
  width:998px;
  height:150px;
  background: black;
  position: absolute;
  left:0;
  top:-150px;
  background:rgba(0,0,0,0.5);
  display: none;
}
.One_ShopFootBuy>div:nth-child(2) ol>li{
  text-align: left;
  color:white;
  height:30px;
  line-height: 30px;
  padding-left:15px;
}
.One_ShopFootBuy>div:nth-child(2) ul{
  display: none;
}
.One_ShopFootBuy>div:nth-child(2) ul>li img{
  width:50px;
  height:80px;
}
.One_ShopFootBuy>div:nth-child(2) ul>li:first-child{
  position: absolute;
  left:0;
  top:-110px;
}
.One_ShopFootBuy>div:nth-child(2) ul>li:last-child{
  position: absolute;
  right:0;
  top:-110px;
}
.One_ShopFootBuy>div:nth-child(2) ol>li:last-child{
  margin-left:50px;
  margin-top:10px;
}
.One_ShopFootBuy>div:nth-child(2) ol>li:last-child img{
  width:150px;
  height:100px;
}
.One_ShopFootBuy>div:nth-child(2) img{
  vertical-align: middle;
  width:12px;
  height:10px;
}
.One_ShopFootBuy>div:nth-child(3),.One_ShopFootBuy>div:nth-child(2){
  //width:130px;
  height: 50px;
  color:gray;
}
.One_ShopFootBuy>div:nth-child(3){
  //width:150px;
}
.One_ShopFootBuy>div:nth-child(3) ol{
  //width: 200px;
}
.One_ShopFootBuy>div:nth-child(3) ol li{
  float: left;
  margin-right: 20px;
  width:150px;
  height:50px;
  line-height: 50px;
}
.One_ShopFootBuy>div:nth-child(3) ol li:last-child{
  margin-left:-30px;
}
.One_ShopFootBuy>div:nth-child(3) ol li img{
  vertical-align: middle;
  width:20px;
  height:20px;
}
.One_ShopFootBuy>div:last-child{
  float:right;
}
.One_ShopFootBuy>div:last-child button{
  width:96px;
  height:50px;
  background: rgb(60,133,39);
  color:white;
  border:none;
  outline: none;
  font-size:16px;

  &:hover{
    cursor: pointer;
    background: rgb(128,176,114);
  }
}
.One_Local{
  display: none;
}
html,body{
  width:100%;
  height:100%;
}
.One_mb{
  width:100%;
  height:100%;
  background: #D8D8D8;
  position: fixed;
  top:0;
  left:0;
  z-index:49999;
  display: none;
  opacity: 0.4;
}
.One_isDel,.One_moveMyGz,.One_clearShop{
  width:400px;
  height:220px;
  background: white;
  border:5px solid #C2C2C2;
  border-radius: 5px;
  display: none;
  z-index:50000;
  position: fixed;
  top:350px;
  left:751.5px;
}
.One_isDel>p,.One_moveGzIfNull>p,.One_moveMyGz>p,.One_clearShop>p{
  height:40px;
  line-height: 40px;
  width:100%;
  background: #F3F3F3;
  padding:0 5px;
}
.One_isDel>p span:last-child,.One_moveGzIfNull>p span:last-child,.One_moveMyGz>p span:last-child,.One_clearShop>p span:last-child{
  float:right;
}
.One_isDel>p span:last-child img,.One_moveGzIfNull>p span:last-child img,.One_moveMyGz>p span:last-child img,.One_clearShop>p span:last-child img{
  vertical-align: middle;
}
.One_isDel dl,.One_moveGzIfNull dl,.One_moveMyGz dl,.One_clearShop dl{
  margin-left:50px;
  height:50px;
  padding-top:20px;
}
.One_isDel dl dd,.One_moveGzIfNull dl dd,.One_moveMyGz dl dd,.One_clearShop dl dd{
  margin-left:10px;
}
.One_isDel dl dd li:first-child,.One_moveMyGz dl dd li:first-child,.One_clearShop dl dd:last-child{
  color:#FF6C00;
  font-size:18px;
  font-weight: bold;
}
.One_isDel dl dd li:last-child,.One_moveMyGz dl dd li:last-child{
  color:gray;
  margin-top:3px;
}
.One_isDel dl dt,.One_isDel dl dd,.One_moveMyGz dl dt,.One_clearShop dl dt,.One_clearShop dl dd{
  //float:left;
}
.One_isDel>div:last-child,.One_moveMyGz>div:last-child{
  height:50px;
  clear:left;
  padding-top:20px;
  text-align: center;
}
.One_isDel>div:last-child button:first-child,.One_moveMyGz>div:last-child button:last-child{
  //border-radius: 5px;
  width: 100px;
  height: 35px;
  outline: none;
  //padding:5px 10px;
  border:none;
  margin-right:5px;
  background: rgb(60,133,39);
  color:white;

  &:hover{
    cursor: pointer;
  }
}
.One_isDel>div:last-child button:last-child,.One_moveMyGz>div:last-child button:first-child{

  //border-radius: 5px;
  //padding:5px;
  color: rgb(60,133,39);
  border: 1px solid rgb(60,133,39);
  width: 100px;
  height: 35px;
  outline: none;

  &:hover{
    cursor: pointer;
  }
}
.One_moveMyGz>div:last-child button:first-child{
  padding:5px 10px;
}
.One_moveGzIfNull{
  width:400px;
  height:200px;
  background: white;
  border:5px solid #C2C2C2;
  border-radius: 5px;
  display: block;
  z-index:50000;
  position: fixed;
  top:350px;
  left:751.5px;
}
.One_moveGzIfNull dl dt,.One_moveGzIfNull dl dd{
  float:left;
}
.One_moveGzIfNull dl dd{
  font-size:17px;
  font-weight: bold;
  color:orangered;
}
.One_DengLu{
  width:450px;
  height:500px;
  background: white;
  border:5px solid #C2C2C2;
  border-radius: 5px;
  position: fixed;
  top:70px;
  left:450px;
  display: none;
  z-index:50000;
}
.One_DengLu>p:first-child{
  width:100%;
  height:40px;
  line-height: 40px;
  background:#F3F3F3;
  padding-left:10px;
  font-size:13px;
  color:gray;
}
.One_DengLu>p:first-child span:last-child{
  float:right;
  padding-right:10px;
}
.One_DengLu>p:first-child span:last-child img{
  vertical-align: middle;
  width:15px;
  height:15px;
}
.One_DengLu>p:nth-child(2){
  width:430px;
  text-align: center;
  height:40px;
  line-height: 40px;
  background: #FFF8F0;
  color:gray;
  margin:10px;
}
.One_DengLu>p:nth-child(2) img{
  vertical-align: middle;
}
.One_DengLu div:nth-child(3) ul>li{
  float:left;
  font-size:18px;
  width:220px;
  text-align: center;
  height:50px;
  line-height: 50px;
}
.One_DengLu div:nth-child(3) ul>li:first-child{
  color:#E64346;
  font-weight: bold;
}
.One_DengLu div:nth-child(3) ol{
  text-align: center;
}
.One_DengLu div:nth-child(3) ol dt img{
  width:200px;
  height:200px;
}
.One_DengLu div:nth-child(3) ol dd:nth-child(2){
  color:black;
}
.One_DengLu div:nth-child(3) ol dd:nth-child(3){
  margin-bottom:25px;
}
.One_DengLu div:nth-child(3) ol dd{
  margin:10px 0;
  color:#D9D9D9;
}
.One_DengLu div:nth-child(3) ol dd img{
  vertical-align: middle;
}
.One_DengLu div:nth-child(3) ol font{
  float:left;
  width:50px;
  text-align: center;
}
.One_DengLu div:nth-child(3) ol font:last-child{
  width:80px;
  float:right;
}
.One_DengLu div:nth-child(3) ol font img{
  vertical-align: middle;
}
.One_DengLu div:nth-child(3) ol>li{
  display: none;
}
.One_DengLu div:nth-child(3) ol>li:first-child{
  position: absolute;
  left:120px;
  top:170px;
  display: block;
}
.One_DengLu div:nth-child(3) ol>li:last-child table{
  text-align: center;
  width:300px;
  text-align: center;
  margin:0 auto;
  position: absolute;
  left:50px;
  top:150px;
}
.One_DengLu div:nth-child(3) ol>li:last-child table tr:first-child td img,.One_DengLu div:nth-child(3) ol>li:last-child table tr:nth-child(2) td img{
  vertical-align:middle;
}
.One_DengLu div:nth-child(3) ol>li:last-child table tr:first-child td span:first-child{
  background: #DBDBDB;
  padding:10px;
}
.One_DengLu div:nth-child(3) ol>li:last-child table tr:nth-child(2) td span:first-child{
  background: #DBDBDB;
  padding:10px;
}
/*.One_DengLu div:nth-child(3) ol>li:last-child table tr:nth-child(2) td span:first-child{
  margin-left:3px;
}*/
.One_DengLu div:nth-child(3) ol>li:last-child table tr:first-child td span:last-child input{
  height:36px;
  width:260px;
  border:1px solid #DBDBDB;
  border-left:none;
  vertical-align: middle;
  outline: none;
  margin-top:-3px;
  padding-left:10px;
}
.One_DengLu div:nth-child(3) ol>li:last-child table tr:nth-child(2) td span:last-child input{
  height:36px;
  width:260px;
  border:1px solid #DBDBDB;
  border-left:none;
  vertical-align: middle;
  outline: none;
  margin-top:-3px;
  padding-left:10px;
}
.One_DengLu div:nth-child(3) ol>li:last-child table tr:nth-child(2) td span:last-child input{
  margin-left:-4px;
}
.One_DengLu div:nth-child(3) ol>li:last-child table tr:nth-child(3) td{
  float:right;
}
.One_DengLu div:nth-child(3) ol>li:last-child table tr:nth-child(4) td button{
  width:300px;
  background: #E64346;
  border:none;
  outline: none;
  color:white;
  text-align: center;
  height:40px;
  line-height: 40px;
}
.One_DengLu div:nth-child(3) ol>li:last-child table tr:last-child td li{
  float:left;
  margin:20px 5px;
}
.One_DengLu div:nth-child(3) ol>li:last-child table tr:last-child td li:last-child{
  float:right;
  margin:20px 0;
}
.One_DengLu div:nth-child(3) ol>li:last-child table tr:last-child td li:last-child img{
  width:20px;
  height:20px;
}
.One_DengLu div:nth-child(3) ol>li:last-child table tr:last-child td li img{
  vertical-align: middle;
}
.One_RightFix{
  position: fixed;
  top:200px;
  right:0;
}
.One_RightFix ul>li{
  background: #7A6E6E;
  color:white;
  width:35px;
  height:35px;
  text-align: center;
  margin:2px 0;
  padding:5px;
  border-radius: 3px;
  position: relative;
}
.One_RightFix ul>li img{
  vertical-align: middle;
  text-align: center;
  margin-top:2px;
}
.One_RightFix ul>li:first-child{
  background: #C91423;
  height:40px;
}
.One_RightFix ul>li ol{
  position: absolute;
  top:0;
  left:40px;
}
.One_RightFix ul>li ol>li{
  width:80px;
  height:35px;
  line-height: 35px;
  text-align: center;
  background: #C91423;
  border-radius: 3px;
}
.One_RightbtmFix{
  position: fixed;
  bottom:0;
  right:0;
}
.One_RightbtmFix ul>li{
  padding:5px 7px;
  background: #7A6E6E;
  text-align: center;
  margin:2px 0;
  border-radius: 3px;
  position: relative;
}
.One_RightbtmFix ul>li ol{
  position: absolute;
  top:0;
  left:40px;
}
.One_RightbtmFix ul>li ol>li{
  width:60px;
  height:33px;
  background: #C91423;
  color:white;
  text-align: center;
  line-height: 33px;
  border-radius: 3px;
}
.One_RightbtmFix ul>li a,.One_RightbtmFix ul>li ol>li a{
  color:white;
}
.hahaha{
  transition: all 1.5s;
}
.fix{
  width:1000px;
  margin:0 auto;
  position: fixed;
  bottom:0;
  left:173px;
  background: white;
}
</style>
